#include <iostream>
#include <initializer_list>
#include <vector>
#include <map>


std::pair<int,std::string> func1()
{
    return {};
}
std::vector<int> func()
{
    return {};
}

class Myvector
{
public:
    Myvector(const std::initializer_list<int> & list)
    {
        for(auto ite = list.begin(); ite != list.end();ite++)
        {
            data.push_back(*ite);
        }
    }

    void show()
    {
        for(auto ite = data.begin(); ite != data.end();ite++)
        {
            std::cout<<*ite<<" ";
        }
        std::cout<<std::endl;
    }
    std::vector<int> data;
};

int main()
{
    // int a[] = {1,2,3};
    // // 列表初始化: initializer_list    {}
    // std::vector<int> v = {1,2,3,4,5};
    // Myvector v = {1,2,3,4,5};
    // v.show();

    //有效的预防 不合理的隐式转换
    int a = {3.14};
    return 0;
}